package com.xspace.android.xafcommon.util;


/**
 * @version V1.0.0
 * @ClassName: Constants
 * @author:qbluo
 * @Date：2014-2-21
 * @Description: 常量类
 */
public class Constants {

    //仿真环境地址
//    public static final String IP = "http://192.168.1.50:8318"; //50接口地址
//    private static final String URL_SUFFIXR = IP + "/AFMISR/";// 50测试加密版本加R
    public static final String IP = "http://222.173.29.164:81"; //新接口地址
//    public static final String IP = "http://192.168.1.33:8085"; //新接口地址
//    public static final String IP = "http://192.168.1.178:8080"; //新接口地址

    //    private static final String URL_SUFFIXR = IP + "/AFMIS/";// 新接口加密和非加密都不加R了
    private static final String URL_SUFFIXR = IP + "/AFMIS-HX/";// 新接口加密和非加密都不加R了

    private static final String VERSION_SUFFIX = "?v=5";
    //内网个人事项
    public static final String MyItemTypeID = "2de4c429-31e3-4763-b43f-c3e6c2d5dcd9";
    //表单地址
    //    public final static String AddressLL = "http://222.173.29.164:8068"; //旧表单地址
//    public final static String AddressLL = "http://192.168.1.50:8314"; //50表单地址
    public final static String AddressLL = "http://222.173.29.164:81"; //最新表单地址

    public static String UnZipHtmlBaseDir = "wwwtest";
    /*=======================================*/

    public static final String PACKAGE_NAME_MAIN = "MainPackageName";
    private static final String URL_SUFFIX = IP + "/AFMIS/";// 现网地址
    //    private static final String URL_SUFFIX = AddressLL + "/AFMIS_React/";// 内网网地址
    public static final String VERSION1 = VERSION_SUFFIX;
    public static final String UnionOrgId = "c2d68e0c-0635-4120-97ad-e869ab88d6ce";

    public static final String MESSAGE_ATTR_IS_VOICE_CALL = "is_voice_call";
    public static final String MESSAGE_ATTR_IS_VIDEO_CALL = "is_video_call";

    //用于截取聊天 链接 url跟文本
    public final static String CHAR_SPECIAL = "@###@";

    public final static String INITIAL_PASSWORD_WARN = "initialPassword";

    //constant
    public static final String ACCOUNT_USER_ID = "id";
    public static final String ACCOUNT_PASSWORD_KEY = "password";
    public static final String ACCOUNT_NAME_KEY = "name";
    public static final String ACCOUNT_USER_MOBILE = "mobile";
    public static final String ACCOUNT_USER_LOGO = "user_logo";
    public static final String ACCOUNT_USER_ADDRESS = "user_address";
    public static final String ACCOUNT_USER_SEX = "user_sex";
    public static final String ACCOUNT_USER_EMAIL = "user_email";
    public static final String ACCOUNT_USER_DESC = "user_desc";
    public static final String ACCOUNT_BAREJID_KEY = "user_bjid";
    public static final String ACCOUNT_USER_AREACODE = "user_areacode";
    public static final String ACCOUNT_USER_SCORE = "user_score";
    public static final String ACCOUNT_USER_DEPTID = "user_deptid";
    public static final String ACCOUNT_USER_DEPTNAME = "user_deptname";
    public static final String ACCOUNT_USER_DEPTCODE = "user_deptcode";
    public static final String ACCOUNT_USER_ORGTID = "user_orgid";
    public static final String ACCOUNT_USER_ORGNAME = "user_org_name";
    public static final String ACCOUNT_USER_ORGCODE = "user_orgcode";
    public static final String ACCOUNT_USER_QQ = "user_qq";
    public static final String ACCOUNT_USER_DEPT_AREACODE = "user_dept_areacode";
    public static final String ACCOUNT_USER_ORG_HXID = "user_orghxid";
    public static final String ACCOUNT_USER_ORG_AREACODE = "user_org_areacode";
    public static final String ACCOUNT_USER_QACEXPERT = "user_qacexpert";
    public static final String ACCOUNT_USER_ISFARMER = "isfarmer";

    public static final String ACCOUNT_BIZLIST = "bizList";
    public static final String ACCOUNT_HUANXIN_FLAG = "huanxin_flag";
    public static final String ACCOUNT_USER_POSTLIST = "user_postlist";
    //    public static final String ACCOUNT_USER_NAME = "name";

    public static final String ACCOUNT_HAS_SHOW_DECLARE_INFO = "hasShowDeclareInfo";

    public static final String ACCOUNT_USER_RESULT = "user_result";
    //app基本信息
    public static final String ACCOUNT_APP_ID = "app_id";
    public static final String ACCOUNT_APP_ORGID = "app_org_id";
    public static final String ACCOUNT_APP_ORG_HXID = "app_orghxid";
    public static final String ACCOUNT_APP_ORG_NAME = "app_org_name";
    public static final String ACCOUNT_APP_ORG_AREACODE = "app_dept_areacode";
    public static final String ACCOUNT_PLAT_CODE = "app_plat_code";
    public static final String ACCOUNT_APP_RESULT = "app_result";
    public static final String ACCOUNT_EQUIPMENTS = "equipments";
    public static final String INDEX_CODE = "indexcode";
    public static final String ACCOUNT_APP_VERSION = "app_version";
    //appindex基本信息
    //	public static final String htmlVersion = "htmlVersion";
    public static final String HTML_VERSION = "htmlVersion";
    public static final String ACCOUNT_APP_INDEX = "appindex";
    public static final String ACCOUNT_APP_INDEX_RESULT = "app_result";

    //    public static final String INDEX_URL = "indexurl";
    //	public static final String ACCOUNT_id_KEY = "id";
    //	public static final String ACCOUNT_MOBILE_KEY = "mobile";
    //	public static final String OFFLINE="myOfflineSql";
    public static final String SPRING_DB = "springDb";
    public static final String BISHAN_DB = "bishanDb";
    public static final String OFFLINE_DB = "offlineDb";
    public static final String OFFLINE_PEDING_ITEM_CACHED = "isPedingItem";
    public static final String ACCOUNT_Acccess_Token = "access_token";
    //	public static final String ACCOUNT_USER_HxId = "user_orghxid";
    //	public static final String ACCOUNT_APP_HxId = "app_orghxid";
    //	public static final String ACCOUNT_App_Dept_Areacode = "app_dept_areacode";
    //	public static final String ACCOUNT_User_Dept_Areacode = "user_dept_areacode";
    //	public static final String ACCOUNT_User_DeptId = "user_deptid";
    //	public static final String ACCOUNT_User_DepName = "user_deptname";
    //	public static final String ACCOUNT_User_DeptCode = "user_deptcode";
    //	public static final String ACCOUNT_BIZ_LIST = "bizList";
    public static final String ACCOUNT_User_ZhenCode = "user_zhencode";
    public static final String ACCOUNT_User_Zhen_Name = "user_zhenname";
    public static final String ACCOUNT_User_CunCode = "user_cuncode";

    public static final String ACCOUNT_User_CunName = "user_cunname";
    public static final String ACCOUNT_User_SheId = "user_sheid";
    public static final String ACCOUNT_User_ShenName = "user_shename";
    /*用户签到定位参数*/
    public static final String SIGN_SIGNON_TIME = "signon_time";
    public static final String SIGN_SIGNOUT_TIME = "signout_time";
    public static final String SIGN_STATUS = "status";
    public static final String SIGN_ON_STATUS = "signOnFlag";
    public static final String SIGN_OUT_STATUS = "signOutFlag";
    public static final String SIGN_CLASS_DATE = "class_date";
    public static final String SIGN_TRAIL_INTERVAL = "trail_interval";

    /**
     * 用户权限json
     **/
    public static final String ACCOUNT_User_Authority_Jsondata = "user_authority_jsondata";
    //	public static final String ACCOUNT_Is_Farmer = "isfarmer";

    public static final String ACCOUNT_REM_PASSWORD_KEY = "remmber_mobile_pwd";
    public static final String ACCOUNT_DEPTID_BYUSER_KEY = "deptid_byuser";
    public static final String ACCOUNT_DEPTNAME_BYUSER_KEY = "deptname_byuser";
    public static final String ACCOUNT_RESOURCE_KEY = "android";
    public static final String ACCOUNT_AREA_KEY = "area";
    //	public static final String ACCOUNT_USER_HREAD = "user_hread";
    public static final String ACCOUNT_VALIDATED = "validated";
    public static final String APP_INSTALL = "app_install";
    public static final String USER_POWER = "user_power";
    public static final String JSON_UNDEAL_APPLY_FORM = "undealFormJson";
    public static final String JSON_PEDING_ITEM = "pedingItem";
    public static final String JSON_PEDING_ITEM_DETAIL = "pedingItemDetail";
    public static final String JSON_WORK_LOG_PAGE_INFO = "workLogPageInfo";
    public static final String LAST_UPDATE_TIME = "last_update_time";
    public static final String LAST_DEL_TIME = "last_del_time";

    public static final String WEBVIEURL = "web_view_url";
    public static final String TITITL = "web_title";
    public static final String SPEEDPACHEGE = "wnx";

    /**
     * app升级
     */
    public static final String URL_APP_UPDATE = URL_SUFFIX + "update" + VERSION_SUFFIX;
    public static final String upLoadFileCommon = URL_SUFFIX + "upLoadFileCommon";//工日志文件上传

    private static final String VERSION_SUFFIX_V6 = "?v=6";// 现网地址
    /**
     * 微农新接口
     **/
    public static final String SEARCH_CONTACT_USER = URL_SUFFIXR + "searchContactUser" + VERSION_SUFFIX_V6;// 搜索通讯录用户接口
    /**
     * 查询组织机构
     */
    public static final String QUERY_FARMER_SERVERS = URL_SUFFIXR + "queryFarmerServers" + VERSION_SUFFIX_V6;// 查询我的农技员
    public static final String QUERY_ORG = URL_SUFFIXR + "queryOrg" + VERSION_SUFFIX_V6;// 查询组织机构
    public static final String QUERY_PART_TIMEDEPT = URL_SUFFIXR + "queryPartTimeDept" + VERSION_SUFFIX_V6;// 查询兼职部门
    public static final String QUERY_DIRECT_UNIT = URL_SUFFIXR + "queryDirectUnit" + VERSION_SUFFIX_V6;// 查询直属机构
    public static final String QUERY_BELONG_DEPT = URL_SUFFIXR + "queryBelongDept" + VERSION_SUFFIX_V6;//查询归口
    public static final String QUERY_ORG_ALL_USERS = URL_SUFFIXR + "queryOrgAllUsers" + VERSION_SUFFIX_V6;//查询机构成员接口
    public static final String QUERY_USER_CARD = URL_SUFFIXR + "queryUserCard" + VERSION_SUFFIX_V6;//查询个人名片接口
    public static final String CREATE_USER_GROUP = URL_SUFFIXR + "createUserGroup" + VERSION_SUFFIX_V6;//创建临时会话
    public static final String SAVE_AS_USER_GROUP = URL_SUFFIXR + "saveAsUserGroup" + VERSION_SUFFIX_V6;//保存为群组
    public static final String ADD_GROUP_MEMBER = URL_SUFFIXR + "addGroupMember" + VERSION_SUFFIX_V6;//添加成员
    public static final String EXIT_GROUP = URL_SUFFIXR + "exitGroup" + VERSION_SUFFIX_V6;//删除成员
    public static final String QUERY_GROUP_INFOR = URL_SUFFIXR + "queryGroupInfo" + VERSION_SUFFIX_V6;//查询群组详情
    public static final String QUERY_PRO_GROUP_INFOR = URL_SUFFIXR + "queryProGroupInfor" + VERSION_SUFFIX_V6;//查询专业群组详情
    public static final String UPDATE_USER_GROUP = URL_SUFFIXR + "updateUserGroup" + VERSION_SUFFIX_V6;//修改群组名称
    public static final String QUERY_MULTI_CHATRECORD = URL_SUFFIXR + "queryMultiChatRecord" + VERSION_SUFFIX_V6;
    public static final String QUERY_USER_BUSINESS_CARD = URL_SUFFIXR + "queryUserBusinessCard" + VERSION_SUFFIX_V6;
    //查询对方名片接口
    public static final String QUERY_FRIENDS = URL_SUFFIXR + "queryFriends" + VERSION_SUFFIX_V6;//查询好友列表
    public static final String ADD_FRIEND_REQUEST = URL_SUFFIXR + "addFriendRequest" + VERSION_SUFFIX_V6;//申请添加好友
    public static final String ADD_FRIEND_RESPONSE = URL_SUFFIXR + "addFriendResponse" + VERSION_SUFFIX_V6;//接受好友请求
    public static final String SEARCH_ALL_USER = URL_SUFFIXR + "searchAllUser" + VERSION_SUFFIX_V6;//通过手机号查询好友
    public static final String DEL_FRIENDS = URL_SUFFIXR + "delFriends" + VERSION_SUFFIX_V6;//通过手机号查询好友
    //获取群聊记录
    public static final String QUERY_USER_ALL_GROUP = URL_SUFFIXR + "queryUserAllGroup" + VERSION_SUFFIX_V6;//查询个人所有群组接口

    //废弃
    public static final String QUERY_USER_GROUP = URL_SUFFIXR + "queryUserGroup" + VERSION_SUFFIX_V6;//查询用户个人群组
    public static final String QUERY_PRO_GROUP = URL_SUFFIXR + "queryProGroup" + VERSION_SUFFIX_V6;//查询用户专业群组
    public static final String QUERY_USERORG_GROUP = URL_SUFFIXR + "queryUserOrgGroup" + VERSION_SUFFIX_V6;//查询用户机构群组
    /**
     * 查询个人信息接口
     */

    public static final String REVOKE_SINGLE_CHAT = URL_SUFFIXR + "revokeSingleChat" + VERSION_SUFFIX_V6;//撤销单聊
    public static final String REVOKE_MULTI_CHAT = URL_SUFFIXR + "revokeMultiChat" + VERSION_SUFFIX_V6;//撤销群聊
    public static final String sendHXSingleChatMsg = URL_SUFFIXR + "sendSingleChatMsg" + VERSION_SUFFIX_V6;//发送环信单聊信息
    public static final String sendMultiChatMsg = URL_SUFFIXR + "sendMultiChatMsg" + VERSION_SUFFIX_V6;//发送环信聊天信息
    public static final String queryHXSingleChatMsg = URL_SUFFIXR + "querySingleChat" + VERSION_SUFFIX_V6;//查询环信单聊信息
    public static final String QUERY_GROUP_MEMBERS = URL_SUFFIXR + "queryGroupMembers" + VERSION_SUFFIX_V6;//查询群组成员
    public static final String QUERY_PRO_GROUP_MEMBERS = URL_SUFFIXR + "queryProGroupMembers" + VERSION_SUFFIX_V6;
    //查询专业群组成员
    public static final String DEL_USER_GROUP = URL_SUFFIXR + "delUserGroup" + VERSION_SUFFIX_V6;//退出群组
    public static final String TRANSFER_GROUP = URL_SUFFIXR + "transferGroup" + VERSION_SUFFIX_V6;//转让群组
    public static final String QUEY_DEPT_BASE_INFO = URL_SUFFIXR + "queyDeptBaseInfo" + VERSION_SUFFIX_V6;//转让群组
    public static final String QUEY_DEPT_FUNCTION_INFO = URL_SUFFIXR + "queyDeptFunctionInfo" + VERSION_SUFFIX_V6;
    //查询机构职能信息接口
    public static final String QUERY_GROUP_MEMBER_COUNT = URL_SUFFIXR + "queryGroupMemberCount" + VERSION_SUFFIX_V6;
    //查询群组成员数量
    public static final String QUERY_MICRO_AGRORG = URL_SUFFIXR + "queryMicroAgrOrg" + VERSION_SUFFIX_V6;//查询微农机构
    public static final String QUERY_MSG_DEPTS = URL_SUFFIXR + "queryMsgDepts" + VERSION_SUFFIX_V6;//查询下发信息部门
    public static final String CHECK_USER_EXIST_BYORG = URL_SUFFIXR + "checkUserExistByOrg" + VERSION_SUFFIX_V6;
    //判断人员是否本机构

    public static final String MONITE_IP = "http://12316yun.com";
    //    public static final String MONITE_IP = "http://192.168.1.147:8320";

    public static final String MONITE_PROJECT = "/afm-jk/monitor-api";

    /**
     * 更新用户信息阅读状态
     */
    public static final String UPDATE_USER_MSGSTATE = URL_SUFFIXR + "updateUserMsgState" + VERSION_SUFFIX_V6;

    /**
     * 查询当前部门向该用户发送的所有微农信消息
     */
    public static final String QUERY_PUSH_MSG = URL_SUFFIXR + "queryPushMsg" + VERSION_SUFFIX_V6;
    public static final String QUERY_PUSH_MSG_DETAIL = URL_SUFFIXR + "queryPushMsgDetail" + VERSION_SUFFIX_V6;
    public static final String COMMIT_LOG_RECORD = "commit_log_record";

    public static final String QUERY_WRITE_LOG_DATE = URL_SUFFIXR + "queryWriteLogDate" + VERSION_SUFFIX_V6; //查询工作日志日期

    //微农信或者通知公告接受后发送回执
    public static final String UPDATE_MSG_STATE = URL_SUFFIXR + "updateMsgState" + VERSION_SUFFIX_V6; //申诉

    public static final String QUERY_FORM_BASEINFO = URL_SUFFIXR + "queryFormBaseInfo" + VERSION_SUFFIX_V6; //查询申报单基本信息
    //查询服务对象
    public static final String QUERY_SERVICEOBJ = URL_SUFFIXR + "app/wnx/v1.0/queryMyServObj" + VERSION_SUFFIX_V6;
    //编辑工作详情备注信息-
    public static final String UPDATE_WORKDETAIL_REMARK = URL_SUFFIXR + "updateWorkDetailRemark" + VERSION_SUFFIX_V6;
    public static final String SEND_FORM_CHAT = URL_SUFFIXR + "sendFormChat" + VERSION_SUFFIX_V6;//申报单会话接口

    public static final String Technology = "technology";
    public static final String Market = "market";
    public static final String Policy = "policy";


    //问答类型
    public static final String QUESTION_TYPE = "questionType";

    public static final int NORMAL = 1;//普通
    public static final int TRANSFER = 2;//转呈
    public static final String NAVIGATION_JSON = "navigation.json";

    public static final String APP_SUFFIXR = URL_SUFFIXR + "app/";
    public static final String APP_SUFFIX = URL_SUFFIX + "app/";
    public static final String V1_0 = "v1.0/";
    public static final String V1_2 = "v1.2/";
    public static final String WNX = APP_SUFFIXR + "wnx/";
    public static final String COMMON = APP_SUFFIXR + "common/";
    public static final String LOG = APP_SUFFIXR + "log/";
    public static final String PERSONAL = APP_SUFFIXR + "personal/";

    public static final String COMMON_ = APP_SUFFIXR + "common/";

    //查询服务对象基本信息
    public static final String QUERY_SERVICE_OBJ_BASEINFO = WNX + V1_0 + "queryMyServObjBaseInfo" + VERSION_SUFFIX_V6;
    //查询服务对象详情
    public static final String QUERY_SERVICE_OBJ_DETAIL = WNX + V1_0 + "queryMyServObjDetail" + VERSION_SUFFIX_V6;
    //停用服务对象
    public static final String STOP_SERVICE_OBJ = WNX + V1_0 + "stopMyServObj" + VERSION_SUFFIX_V6;
    //查询服务对象类型
    public static final String QUERY_SERVICE_OBJ_TYPE = WNX + V1_0 + "queryServObjType" + VERSION_SUFFIX_V6;
    //查询挂牌包片兽医
    public static final String QUERY_ANIMAL_DOCTOR = WNX + V1_0 + "queryAnimalDoctor" + VERSION_SUFFIX_V6;
    //获取地区
    public static final String QUERY_AREA_DETAIL = COMMON + V1_2 + "queryAreaDetail" + VERSION_SUFFIX_V6;
    //获取乡镇
    public static final String QUERY_AREA = COMMON + V1_2 + "queryArea" + VERSION_SUFFIX_V6;
    //获取村社
    public static final String QUERY_SHE = COMMON + V1_2 + "queryShe" + VERSION_SUFFIX_V6;
    //获取养殖类型
    public static final String QUERY_BREEDCODE = WNX + V1_0 + "queryServObjBreedCode" + VERSION_SUFFIX_V6;
    //获取动物用途
    public static final String QUERY_ANIMAL_USE = WNX + V1_0 + "queryServObjAnimalUse" +
            VERSION_SUFFIX_V6;
    //获取动物种类
    public static final String QUERY_ANIMAL = WNX + V1_0 + "queryServObjAnimal" + VERSION_SUFFIX_V6;
    //编辑服务对象
    public static final String UPDATE_SERVICE_OBJ = WNX + V1_0 + "updateMyServObj" + VERSION_SUFFIX_V6;
    //添加服务对象
    public static final String ADD_SERVICE_OBJ = WNX + V1_0 + "addMyServObj" + VERSION_SUFFIX_V6;


    //个人中心接口
    public static final String UPDATE_USER_INFO = PERSONAL + V1_2 + "updateUserInfo" + VERSION_SUFFIX_V6; //更新用户信息
    public static final String QUERY_USER_INFO = PERSONAL + V1_2 + "queryUserInfo" + VERSION_SUFFIX_V6; //查询个人信息
    public static final String UPDATE_USER_SIGN = PERSONAL + V1_2 + "updateUserSign" + VERSION_SUFFIX_V6; //更新用户签名
    public static final String UPDATE_USER_PWD = PERSONAL + V1_2 + "changePwd" + VERSION_SUFFIX_V6; //更新用户密码
    public static final String USER_LOGIN = PERSONAL + V1_2 + "userLogin" + VERSION_SUFFIX_V6; //用户登录


    public static final String queryApkPlugin = COMMON + V1_2 + "queryApkPlugin" + VERSION_SUFFIX_V6;

    /***************************************************************************************************/

    //验证手机号码-v1.2
    public static final String validationPhone = PERSONAL + V1_2 + "validationPhone" + VERSION_SUFFIX_V6;
    //验证是否已注册-v1.2
    public static final String isRegPhone = PERSONAL + V1_2 + "isRegPhone" + VERSION_SUFFIX_V6;
    //获取验证码-v1.2
    public static final String simulationVerifyCode = PERSONAL + V1_2 + "simulationVerifyCode" + VERSION_SUFFIX_V6;
    public static final String register = PERSONAL + V1_2 + "register" + VERSION_SUFFIX_V6;

    public static final String findPwd = PERSONAL + V1_2 + "findPwd" + VERSION_SUFFIX_V6;


}

